<div class="passwordBox text-center loginscreen">
    <div class="row">
        <div class="col-md-12">
            <div class="ibox-content">
                <h2 class="font-bold">{{'FORGET_PASSWORD_TITLE' | translate }}</h2>
                <p>
                  {{ 'FORGET_PASSWORD_PARAGRAPH' | translate }}
                </p>
                <div class="row">
                    <div class="col-lg-12">
                        <form class="m-t" role="form" ng-submit="resetPassword()">
                            <div class="form-group">
                                <input type="text" class="form-control" oninput="check(this,'格式不正确，请填入正确的手机号码')" pattern="^1\d{10}$" placeholder="{{ 'FORGET_PASSWORD_PHONE' | translate }}" ng-model="username" required="">
                            </div>
                          <div class="form-group register_code">
                            <input type="text" class="form-control" placeholder="{{ 'REGISTER_CODE' | translate }}" ng-model="checkcode" required="">
                          </div>
                          <div class="code_btn">
                            <button class="btn btn-primary code_btn1 block m-b pull-right"style="width: 45%;" type="button" ng-click="sendMobile1()">{{'REGISTER_CODE_SEND' | translate }}</button>
                          </div>
                          <button type="submit" class="btn btn-primary block full-width m-b">{{ 'FORGET_PASSWORD_RESET'| translate }}</button>
                          <a class="btn btn-sm btn-white btn-block" ui-sref="login">{{'FORGET_PASSWORD_RETURN'| translate}}</a>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<toaster-container></toaster-container>

<script type="text/javascript">
  function check(i,tip){
    if(i.validity.patternMismatch===true){
      i.setCustomValidity(tip);
    }
    else{
      i.setCustomValidity('');
    }
  }
</script>
